﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using SharePointExplorer.Classes;
using FluidKit.Controls;

namespace SharePointExplorer.UserControls
{
    /// <summary>
    /// Interaction logic for Dashboard.xaml
    /// </summary>
    public partial class Dashboard : UserControl
    {
        NavigationManager nm = new NavigationManager();
        App app = (App)Application.Current;

        public Dashboard()
        {
            InitializeComponent();
            app.MainWindowInstance.DeactivateButton.Visibility = Visibility.Collapsed;
            app.MainWindowInstance.HomeButton.Visibility = Visibility.Collapsed;
            app.MainWindowInstance.backButton.Visibility = Visibility.Collapsed;
            SharePointExplorer.Classes.KinectHelper.TogglePostureDetectedHandler(false);
            app.MainWindowInstance.txtCurrentScreen.Text = "Dashboard";
            this.Loaded += new RoutedEventHandler(Dashboard_Loaded);
            app.MainWindowInstance.UpdateSiteTitle();
        }

        void Dashboard_Loaded(object sender, RoutedEventArgs e)
        {
            
        }

        private void Library_CustomClick(object sender, EventArgs e)
        {
            nm.NavigateContent(this, new DashboardItem("DocLibrary"),Direction.RightToLeft);
        }

        private void Lists_CustomClick(object sender, EventArgs e)
        {
            nm.NavigateContent(this, new DashboardItem("List"), Direction.RightToLeft);
        }

        private void SitesCollections_CustomClick(object sender, EventArgs e)
        {
            nm.NavigateContent(this, new DashboardItem("Sites"), Direction.RightToLeft);
        }
    }
}
